package com.qianbao.finance.sync.modules.elasticsearch.service;

import java.util.Map;


public interface ElasticsearchService {
    void insertById(String index, String type, String id, Map<String, Object> dataMap);

    void upsertById(String index, String type, String id, Map<String, Object> dataMap);

    void batchInsertById(String index, String type, Map<String, Map<String, Object>> idDataMap);

    void update(String index, String type, String id, Map<String, Object> dataMap);

    void deleteById(String index, String type, String id);

    void createMapping(String index, String type, Map<String, Map<String, Map<String, String>>> mappingMap);

    void deleteIndex(String index);

    long count(String index, String type);
}
